package cn.rxmind.dlicense.server.service;

import cn.rxmind.dlicense.core.base.DLicenseContent;

/**
 * 证书相关业务
 *
 * @author renxin
 * @email renxinzhiliangzhi@163.com
 * @date 2021/4/14 10:36 上午
 */
public interface LicenseService {

    /**
     * 生成证书
     * @param content
     * @return
     */
    byte[] createLicense(DLicenseContent content);

    /**
     * 解码证书
     * @param bytes
     * @return
     */
    DLicenseContent licenseDecode(byte[] bytes);

}
